<!DOCTYPE html>
<html>
<head> 
    <title>海之声后台</title>
    <meta charset="utf-8"> 
    <meta http-equiv=”X-UA-Compatible” content=”IE=edge,chrome=1″ /> 
    <link rel="stylesheet" type="text/css" href="/static/css/base.css">
    <link rel="stylesheet" type="text/css" href="/static/css/backTemplate.css">
    <style type="text/css">
        html, body { height: 100%; background:#F4F6F9!important;}
        iframe { border: none;}
    </style>
</head>
<body>
    <!--header-->
    <div class="header">
        <ul>
            <li class="logo" style="background-color:transparent;"><img src="/static/image/sea.png"  style="width:60px;height:60px;margin:0 auto;display:block;"></li> 

            <!-- 管理员 -->
            <li class="quit_login" id="logout">
                <div class="box">
                    <i class="iconfont">&#xe656;</i>
                    <span><?=$_SESSION['admin_info']['username'] ?></span>
                    <div class="down_sanjiao"></div>
                </div>
            </li>

            <!--admin_quit 悬停框-->
            <div class="admin_quit">
                <div class="up_sanjiao"></div>
                <div class="info">
                    <div class="user_info">
                        <a href="<?=base_url().'Admin/Index/editPass'?>" target="iframe">
                            <ul> 
                                <li><span>修改密码</span></li>
                            </ul>
                        </a>
                    </div>
                    <div class="logout">
                        <a target="_self" href="<?=base_url().'Admin/Login/logout'?>">
                            <ul>    
                                <li><i class="iconfont">&#xe65a;</i></li>
                                <li>退出登录</li> 
                            </ul>
                        </a>
                    </div>
                </div>
            </div>
        </ul>
    </div>
    
    <!--侧边栏目录-->
    <div class="aside">

        <ul class="first_sidebar nav-sidebar">
            <!-- 导航栏收缩按钮 -->
            <li class="toggle-menu">
                <div class="firstMenu">
                    <span class="menu-icon menu-left"></span> 
                </div> 
            </li> 

            <!-- 规则设置 -->
            <li>
                <div class="module-name">
                    <i class="icon iconfont">&#xe607;</i>
                    用户管理
                   <span class="arrow-icon"></span>
                </div>

               <ul class="sub-ul">
                    <li class="memberlist"><a target="iframe" href="<?=base_url().'Admin/Member/memberList'?>"><i class="icon iconfont">&#xe63c;</i>用户列表
        <i id="yyl" style="display:none; float: right;font-style: normal;margin-top: 10px;font-size: 14px;margin-right: 20px;width: 20px;height: 20px;text-align: center;line-height: 20px;background: #E6322C;color: #fff;border-radius: 3px;"></i>
                    </a></li> 
               </ul> 
            </li>
            <!-- 知识星球-->
            <li>
                <div class="module-name">
                    <i class="icon iconfont">&#xe65e;</i>
                    知识星球
                   <span class="arrow-icon"></span>
                </div>

               <ul class="sub-ul">
                    <li><a target="iframe"  href="<?=base_url().'Admin/Lore/loreList'?>"><i class="icon iconfont">&#xe63c;</i>知识列表 </span></a></li> 
               </ul> 
            </li>            
        </ul>

        <!-- 顶部杭为科技技术支持 -->
        <div class="company_logo"><a href="http://www.ihangwei.com" target="_blank">杭为科技 | 技术支持</a></div>  
    </div>
 
     <!--主体信息-->
    <div class="con section" id="iframes">
        <iframe src="" id="iframe" name="iframe" width="100%" height="100%" scrolling="auto" frameborder="0" style="overflow: hidden;"></iframe>
    </div>

    <script type="text/javascript" src="/static/lib/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="/static/js/index.js"></script>
    <script>
$.ajax({
          type: 'POST',
          url: "/Admin/Member/ajaxGetNewMember",
          data:{},
          success:function(res){
            var coun=JSON.parse(res).member_num  
            if(coun>0){
                 $('#yyl').show();
                 $('#yyl').text(coun);   
            }
          }
        });
   setInterval(function(){
            $.ajax({
          type: 'POST',
          url: "/Admin/Member/ajaxGetNewMember",
          data:{},
          success:function(res){
            var coun=JSON.parse(res).member_num  
            if(coun>0){
                 $('#yyl').show();
                 $('#yyl').text(coun);   
            }
          }
        });
       
        },20000);
$(".memberlist").click(function(){
        $.ajax({
          type: 'POST',
          url: "/Admin/Member/ajaxEditNewMember",
          data:{},
          success:function(res){
            $('#yyl').hide();
          }
        });

})


    </script>
</body>
</html>
